
# 创建三份数据目录
PORT_ARRAY=(6381 6382 6383)
for port in ${PORT_ARRAY[@]}; do
    #生成数据目录
    source ../../gen-redis-conf.sh $port
done
# 一主两从
docker-compose up -d

echo "docker exec -it redis-master  /usr/local/bin/redis-cli -a 123456"

# docker-compose  logs -f
docker-compose  logs -f





